package com.xiaojianone.service;

import com.xiaojianone.pojo.Headline;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaojianone.pojo.vo.PortalVo;
import com.xiaojianone.utils.Result;

/**
* @author 徐国健
* @description 针对表【news_headline】的数据库操作Service
* @createDate 2025-02-18 14:18:47
*/
public interface HeadlineService extends IService<Headline> {


    /**
     * 首页数据查询
     * @param portalVo
     * @return
     */
    Result findNewsPage(PortalVo portalVo);


    /**
     *根据id查询详情
     * @return
     */
    Result showHeadlineDetail(Integer hid);


    /**
     * 发布头条方法
     * @return
     */
    Result publish(Headline headline,String token);


    /**
     * 头条修改数据
     * @param headline
     * @return
     */
    Result updateDate(Headline headline);
}
